package de.trebings.gia.entities;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class IdeaLike {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private Long ideaId;
	
	@Persistent
	private Long userId;

	public IdeaLike(long ideaId, long userId){
		this.ideaId = ideaId;
		this.userId = userId;
	}
	
	public long getId() {
		return id;
	}
	
	public long getIdeaId() {
		return ideaId;
	}
	
	public long getUserId() {
		return userId;
	}
}
